package pers.course.week1;

import java.util.Scanner;

public class Plus2 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int a = s.nextInt();
        for (int i = 0; i < a; i++) {
            int x = s.nextInt();
            int y = s.nextInt();
            int sum = x + y;
            System.out.println(sum);
        }
        s.close();
    }
}
